$(document).ready(function() {
	
	
	$(".headerLanguages ul li a").hover(function () {
		var headerLanguagesHover = $(this).parents("li").attr("class")
		headerLanguagesHover = headerLanguagesHover.substring(0, headerLanguagesHover.indexOf("_"));
		
			$("." + headerLanguagesHover + "_contentCities").find(".cityDivDot .mapDot").stop(true, true).animate({ width: "23", height: "28", left: "-4px"}, 200, "easeOutExpo").fadeOut(200);
			$("." + headerLanguagesHover + "_contentCities").find(".cityDivDot .mapDotActive").stop(true, true).animate({ opacity: "1"}, 200).show();
			$("." + headerLanguagesHover + "_contentCities").find(".cityDivBox").stop(true, true).fadeIn(300);
			}, 
	  function () {
		  var headerLanguagesHover = $(this).parents("li").attr("class")
		headerLanguagesHover = headerLanguagesHover.substring(0, headerLanguagesHover.indexOf("_"));
		    $("." + headerLanguagesHover + "_contentCities").find(".cityDivDot .mapDotActive").stop(true, true).animate({ opacity: "0"}, 200).hide();
    	    $("." + headerLanguagesHover + "_contentCities").find(".cityDivDot .mapDot").stop(true, true).animate({ width: "14", height: "17", left: "0px"}, 200, "linear").show();
		    $("." + headerLanguagesHover + "_contentCities").find(".cityDivBox").stop(true, true).fadeOut(10);
		  
	  });

	$(".cities ul li a, .cities ul li a .cityDivDot").hover(
	  function () {
		$(this).find(".cityDivDot").css("height", "34px");
		$(this).find(".cityDivDot .mapDot").stop(true, true).animate({ width: "23", height: "28", left: "-4px"}, 200, "easeOutExpo").fadeOut(200);
		$(this).find(".cityDivDot .mapDotActive").stop(true, true).delay(100).animate({ opacity: "1"}, 200).show();
		$(this).find(".cityDivBox").stop(true, true).fadeIn(300);
		$(this).parent("li").css("z-index", "4");
		
	  }, 
	  function () {
		$(this).find(".cityDivDot").css("height", "18px");
		$(this).find(".cityDivDot .mapDotActive").stop(true, true).animate({ opacity: "0"}, 200).hide();
    	$(this).find(".cityDivDot .mapDot").stop(true, true).animate({ width: "14", height: "17", left: "0px"}, 200, "linear").show();
		$(this).find(".cityDivBox").stop(true, true).fadeOut(10);
		$(this).parent("li").css("z-index", "1");
	  }
	);
	
	$('.contentBottom1Right a').click(function(e) {
		$('.fullOfficeList').lightbox_me({
			centered: true,
			
			
			});
			$(".fullOfficeList").show();
		e.preventDefault();
	});
	
	$(".fullOfficeListSlider").jCarouselLite({
		visible: 1,
		btnGo:
		[".lightBoxSliderNav1", ".lightBoxSliderNav2",
		".lightBoxSliderNav3", ".lightBoxSliderNav4",
		".lightBoxSliderNav5", ".lightBoxSliderNav6",
		".lightBoxSliderNav7", ".lightBoxSliderNav8",
		".lightBoxSliderNav9", ".lightBoxSliderNav10",
		".lightBoxSliderNav11", ".lightBoxSliderNav12"]
	});
	$(".fullOfficeListNav ul li a").click(function(e) {
		$(".fullOfficeListNav ul li a").removeClass("fullOfficeListNavActive");
		$(this).addClass("fullOfficeListNavActive");
		e.preventDefault();
	});
});